package com.likai.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.likai.blog.dao.IBloggerMapper;
import com.likai.blog.pojo.Blogger;
import com.likai.blog.service.IBloggerService;

/**
 * 博主service接口实现类
 * @author likai
 * @since 2018-04-30
 */
@Service("bloggerService")
public class BloggerServiceImpl implements IBloggerService  {
	
	@Autowired
	private IBloggerMapper bloggerMapper ;

	@Transactional(readOnly=true)
	public Blogger findByUserName(String userName) {
		return bloggerMapper.selectByUserName(userName) ;
	}

	@Transactional(readOnly=true)
	public Blogger find() {
		return bloggerMapper.selectInfo();
	}

}
